package com.bot.edu.informationmanage.course.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bot.edu.informationmanage.course.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bot.edu.applysystem.audition.entity.vo.CourseVo;
import com.bot.edu.informationmanage.cousesection.entity.CourseSection;
import com.bot.edu.informationmanage.cousesection.entity.vo.CourseSectionVo;
import com.bot.edu.informationmanage.majortype.entity.MajorType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 课程表
 * @Author: jeecg-boot
 * @Date:   2022-03-31
 * @Version: V1.0
 */
public interface CourseMapper extends BaseMapper<Course> {

    Course getcousesectionById(String courseId);

    List<CourseSection> getSectionByPid(String sectionId);

    List<CourseSectionVo> getCourseSectionById(String courseId);

    List<CourseVo> getCourseByMajorId(@Param("ew") QueryWrapper<CourseVo> ew);

    MajorType selectCourseTypeBymajorTypeId(String majorTypeId);
}
